home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: Parent Power
/
The Sunday Times - Parent Power.iso
/
mac
/
jars
/
CDApp.jar
/
installPoolLocal.jocl
< prev
next >
Wrap
Extensible Markup Language
|
2004-06-24
|
2KB
|
53 lines
<?xml version="1.0"?>
<object class="org.apache.commons.dbcp.PoolableConnectionFactory" xmlns="http://apache.org/xml/xmlns/jakarta/commons/jocl">
<!--
The first argument to PoolableConnectionFactory is a ConnectionFactory.
We'll use a DriverManagerConnectionFactory, passing in the appropriate
connect string for the underlying driver.
-->
<object class="org.apache.commons.dbcp.DriverManagerConnectionFactory">
<string value="jdbc:britannica:axioncd:installdb:${INSTALL}/installdb"/>
<object class="java.util.Properties" null="true"/>
</object>
<!--
The next argument is the pool to use.
-->
<object class="org.apache.commons.pool.impl.GenericObjectPool">
<object class="org.apache.commons.pool.PoolableObjectFactory"
null="true"/>
<int value="3"/> <!-- Max active -->
<byte value="2"/> <!-- Exhausted action (2=grow) -->
<long value="0"/> <!-- Max wait -->
<int value="0"/> <!-- Max idle -->
<boolean value="false"/> <!-- Test on borrow -->
<boolean value="false"/> <!-- Test on return -->
</object>
<!--
The next argument is the KeyedObjectPoolFactory to use to create
pools for storing PreparedStatements. This functionality is
optional, we'll just use null.
-->
<object class="org.apache.commons.pool.impl.StackKeyedObjectPoolFactory">
<int value="3"/>
</object>
<!--
The next argument is the query to use to validate that a Connection is
still up and running. It should return at least one row.
This functionality is optional. We'll just set it to null.
-->
<string value="CHECKFILESTATE"/>
<!-- The default "read only" value for Connections. -->
<boolean value="true"/>
<!-- The default "auto commit" value for Connections. -->
<boolean value="false"/>
</object>